package com.ai.aicontact.busi.entity;
 

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;

/***************
 *author: autogen
 *version: 2016-08-13 20:15:53.296
 */
@Entity
@Table(name = "CRITICAL_POINT_DEF")
public class CriticalPointDef implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "CRITICAL_POINT_DEF";

    /**${param.comment} */
	public static final String ALIAS_CRITICAL_POINT_ID = "CRITICAL_POINT_ID";
    /**${param.comment} */
	public static final String ALIAS_CRITICAL_POINT_NAME = "CRITICAL_POINT_NAME";
    /**${param.comment} */
	public static final String ALIAS_CRITICAL_POINT_STATUS = "CRITICAL_POINT_STATUS";
    /**${param.comment} */
	public static final String ALIAS_CHANNEL_ID = "CHANNEL_ID";
    /**${param.comment} */
	public static final String ALIAS_CATAGORY_ID = "CATAGORY_ID";
    /**${param.comment} */
	public static final String ALIAS_CRITICAL_POINT_TYPE = "CRITICAL_POINT_TYPE";
    /**${param.comment} */
	public static final String ALIAS_CREATE_DATE = "CREATE_DATE";
    /**${param.comment} */
	public static final String ALIAS_DONE_DATE = "DONE_DATE";
    /**${param.comment} */
	public static final String ALIAS_REMARKS = "REMARKS";
    /**${param.comment} */
	public static final String ALIAS_EXT_1 = "EXT_1";
    /**${param.comment} */
	public static final String ALIAS_EXT_2 = "EXT_2";
    /**${param.comment} */
	public static final String ALIAS_CRITICAL_POINT_DEC = "CRITICAL_POINT_DEC";
    /**${param.comment} */
	public static final String ALIAS_EFFECTIVE_DATE = "EFFECTIVE_DATE";
    /**${param.comment} */
	public static final String ALIAS_EXPIRE_DATE = "EXPIRE_DATE";
	
	

 	@Id  
 	@Column(name = "CRITICAL_POINT_ID", unique = true, nullable = false)
    public java.lang.Long criticalPointId;
  
 	@Column(name = "CRITICAL_POINT_NAME")
    public java.lang.String criticalPointName;
  
 	@Column(name = "CRITICAL_POINT_STATUS")
    public java.lang.Integer criticalPointStatus;
  
 	@Column(name = "CHANNEL_ID")
    public java.lang.Long channelId;
  
 	@Column(name = "CATAGORY_ID")
    public java.lang.Long catagoryId;
  
 	@Column(name = "CRITICAL_POINT_TYPE")
    public java.lang.Integer criticalPointType;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_DATE")
 	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public java.util.Date createDate;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DONE_DATE")
    public java.util.Date doneDate;
  
 	@Column(name = "REMARKS")
    public java.lang.String remarks;
  
 	@Column(name = "EXT_1")
    public java.lang.String ext1;
  
 	@Column(name = "EXT_2")
    public java.lang.String ext2;
  
 	@Column(name = "CRITICAL_POINT_DEC")
    public java.lang.String criticalPointDec;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "EFFECTIVE_DATE")
 	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public java.util.Date effectiveDate;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "EXPIRE_DATE")
 	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public java.util.Date expireDate;
  





	public java.lang.Long getCriticalPointId() {
		return this.criticalPointId;
	}
	
	public void setCriticalPointId(java.lang.Long value) {
		this.criticalPointId = value;
	}

	public java.lang.String getCriticalPointName() {
		return this.criticalPointName;
	}
	
	public void setCriticalPointName(java.lang.String value) {
		this.criticalPointName = value;
	}

	public java.lang.Integer getCriticalPointStatus() {
		return this.criticalPointStatus;
	}
	
	public void setCriticalPointStatus(java.lang.Integer value) {
		this.criticalPointStatus = value;
	}

	public java.lang.Long getChannelId() {
		return this.channelId;
	}
	
	public void setChannelId(java.lang.Long value) {
		this.channelId = value;
	}

	public java.lang.Long getCatagoryId() {
		return this.catagoryId;
	}
	
	public void setCatagoryId(java.lang.Long value) {
		this.catagoryId = value;
	}

	public java.lang.Integer getCriticalPointType() {
		return this.criticalPointType;
	}
	
	public void setCriticalPointType(java.lang.Integer value) {
		this.criticalPointType = value;
	}

	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}

	public java.util.Date getDoneDate() {
		return this.doneDate;
	}
	
	public void setDoneDate(java.util.Date value) {
		this.doneDate = value;
	}

	public java.lang.String getRemarks() {
		return this.remarks;
	}
	
	public void setRemarks(java.lang.String value) {
		this.remarks = value;
	}

	public java.lang.String getExt1() {
		return this.ext1;
	}
	
	public void setExt1(java.lang.String value) {
		this.ext1 = value;
	}

	public java.lang.String getExt2() {
		return this.ext2;
	}
	
	public void setExt2(java.lang.String value) {
		this.ext2 = value;
	}

	public java.lang.String getCriticalPointDec() {
		return this.criticalPointDec;
	}
	
	public void setCriticalPointDec(java.lang.String value) {
		this.criticalPointDec = value;
	}

	public java.util.Date getEffectiveDate() {
		return this.effectiveDate;
	}
	
	public void setEffectiveDate(java.util.Date value) {
		this.effectiveDate = value;
	}

	public java.util.Date getExpireDate() {
		return this.expireDate;
	}
	
	public void setExpireDate(java.util.Date value) {
		this.expireDate = value;
	}


	
	public CriticalPointDef() {
	}
	
	public CriticalPointDef(boolean qryflag) {
	    if(qryflag){
	    		this.criticalPointId = null;
				this.criticalPointName = null;
				this.criticalPointStatus = null;
				this.channelId = null;
				this.catagoryId = null;
				this.criticalPointType = null;
				this.createDate = null;
				this.doneDate = null;
				this.remarks = null;
				this.ext1 = null;
				this.ext2 = null;
				this.criticalPointDec = null;
				this.effectiveDate = null;
				this.expireDate = null;
			    }
	}


	public CriticalPointDef(
	    java.lang.Long inCriticalPointId,
	    java.lang.String inCriticalPointName,
	    java.lang.Integer inCriticalPointStatus,
	    java.lang.Long inChannelId,
	    java.lang.Long inCatagoryId,
	    java.lang.Integer inCriticalPointType,
	    java.util.Date inCreateDate,
	    java.util.Date inDoneDate,
	    java.lang.String inRemarks,
	    java.lang.String inExt1,
	    java.lang.String inExt2,
	    java.lang.String inCriticalPointDec,
	    java.util.Date inEffectiveDate,
		java.util.Date inExpireDate
	 ) {
		super();
				this.criticalPointId = inCriticalPointId;
				this.criticalPointName = inCriticalPointName;
				this.criticalPointStatus = inCriticalPointStatus;
				this.channelId = inChannelId;
				this.catagoryId = inCatagoryId;
				this.criticalPointType = inCriticalPointType;
				this.createDate = inCreateDate;
				this.doneDate = inDoneDate;
				this.remarks = inRemarks;
				this.ext1 = inExt1;
				this.ext2 = inExt2;
				this.criticalPointDec = inCriticalPointDec;
				this.effectiveDate = inEffectiveDate;
				this.expireDate = inExpireDate;
			}

 


}

